﻿using B.S.BasicData.ErrorCode;
using MediatR;

namespace B.S.BasicData.Api.Write.Application.Command.Account
{
    /// <summary>
    /// 添加账号的命令
    /// </summary>
    public class CreateAccountCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string AccountName { get; set; }
        ///// <summary>
        ///// 密码
        ///// </summary>
        //public string Pwd { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        public string CardId { get; set; }
        public string PhoneNo { get; set; }
        /// <summary>
        /// 所属部门Id:前端在级联组件中选择的id
        /// </summary>
        public long DepartmentId { get; set; }
        public long RoleId { get; set; }
        /// <summary>
        /// 创建人,从前端pinia里面取出来  pinia.loginDTO.accountName
        /// </summary>
        public string Creator {  get; set; }



        ///// <summary>
        ///// 加盐:MD5加盐操作,要用于对用户密码等敏感信息进行加密保护
        ///// </summary>
      
        /// <summary>
        /// 头像的链接地址 
        /// </summary>
        public string Img { get; set; }


        ////***************为了安全,新加刷新token 刷新时间,浏览器指纹 ************

        ///// <summary>
        ///// 刷新token:3天
        ///// </summary>
        //public string RefreshToken { get; set; }

        ///// <summary>
        ///// 刷新token创建时间
        ///// </summary>
        //public DateTime RefreshTokenTime { get; set; }
        ///// <summary>
        ///// 指纹,用于标识是否是本人
        ///// </summary>
        //public string FingerPoint { get; set; }
    }
}
